#include "AudioFile.h"
#include <fstream>
#include "HMM_Helper.h"

AudioFile::AudioFile()
{

}


AudioFile::~AudioFile(void)
{

}

void AudioFile::LoadMFCCFeatureVectors(string mfccPath)
{
	ifstream myfile(mfccPath);
	string line;
	double* mfcc = NULL;

	if (myfile.is_open())
	{
		while ( myfile.good() )
		{
			getline (myfile,line);

			if (!line.empty())
				_mfcc.push_back(HMM_Helper::ConvertToDoubleVector(line));

		}
	}
	else 
	{
		cout << "File " << mfccPath << " not found!" << endl;
	}

	myfile.close();
}